/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jogl2.pkg0.project;

/**
 *
 * @author Peb
 */
import java.awt.*;
import javax.swing.*;
import java.awt.geom.*;

public class Circle extends JFrame {

    public Circle() {
        super("Circle");
        setSize(410, 435);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Panel sp = new Panel();
        Container content = getContentPane();
        content.add(sp);
        setContentPane(content);
        setVisible(true);
    }

    public static void main(String args[]) {
        Circle sign = new Circle();
    }
}

class Panel extends JPanel {

    public void paintComponent(Graphics comp) {
        super.paintComponent(comp);
        Graphics2D comp2D = (Graphics2D) comp;



        comp2D.setColor(Color.red);
        Ellipse2D.Float sign1 = new Ellipse2D.Float(0F, 0F, 350F, 350F);
        comp2D.fill(sign1);


    }
}
